package com.lingxinst.business.login.ui

import android.os.Bundle
import com.lingxinst.business.login.vm.LoginViewModel
import com.lingxinst.business.login.R
import com.lingxinst.business.login.databinding.ActivityLoginBinding
import com.lingxinst.farm.base.ui.BaseMvvmActivity

/**
 * @description:
 * @author: Lynn
 * @datetime: 2025/6/13 11:27
 **/
class LoginActivity :
    BaseMvvmActivity<ActivityLoginBinding, LoginViewModel>(R.layout.activity_login) {

    override fun initTag(): String {
        return this.javaClass.simpleName
    }

    override fun getVMClass(): Class<LoginViewModel> {
        return LoginViewModel::class.java
    }

    // This function is used to set the binding data for the view
    override fun setBindingData() {
        mBinding.vm = mViewModel
    }

    override fun initUIView(savedInstanceState: Bundle?) {


    }


    override fun setObserver() {
        super.setObserver()
        mViewModel.resultCode.observe(this) {
//            Activity.setResult(it)
//            Activity.finish()
        }

    }



}